home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / FireMan.swf / scripts / frame_547 / PlaceObject2_200_3 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Text File  |  2008-09-12  |  2KB  |  60 lines

  1. onClipEvent(load){
  2.    function procesar()
  3.    {
  4.       var temp;
  5.       _visible = loaded = true;
  6.       _root.msg.text = "";
  7.       exito.start();
  8.       _root.scoretable.name0.text = this.NAME0;
  9.       _root.scoretable.name1.text = this.NAME1;
  10.       _root.scoretable.name2.text = this.NAME2;
  11.       _root.scoretable.name3.text = this.NAME3;
  12.       _root.scoretable.name4.text = this.NAME4;
  13.       _root.scoretable.name5.text = this.NAME5;
  14.       _root.scoretable.name6.text = this.NAME6;
  15.       _root.scoretable.name7.text = this.NAME7;
  16.       _root.scoretable.name8.text = this.NAME8;
  17.       _root.scoretable.name9.text = this.NAME9;
  18.       _root.scoretable.score0.text = this.SCORE0;
  19.       _root.scoretable.score1.text = this.SCORE1;
  20.       _root.scoretable.score2.text = this.SCORE2;
  21.       _root.scoretable.score3.text = this.SCORE3;
  22.       _root.scoretable.score4.text = this.SCORE4;
  23.       _root.scoretable.score5.text = this.SCORE5;
  24.       _root.scoretable.score6.text = this.SCORE6;
  25.       _root.scoretable.score7.text = this.SCORE7;
  26.       _root.scoretable.score8.text = this.SCORE8;
  27.       _root.scoretable.score9.text = this.SCORE9;
  28.       var i = 0;
  29.       while(i <= 9)
  30.       {
  31.          if(eval("this.SCORE" + i) != 0)
  32.          {
  33.             temp = (18750 - eval("this.SCORE" + i)) / 0.021;
  34.             eval("_root.scoretable.time" + i).text = _root.m2s(temp);
  35.          }
  36.          else
  37.          {
  38.             eval("_root.scoretable.time" + i).text = "Empty";
  39.          }
  40.          trace(eval("_root.scoretable.name" + i).text + "\t" + eval("_root.scoretable.score" + i).text);
  41.          i++;
  42.       }
  43.    }
  44.    u = _visible = false;
  45.    variables = new LoadVars();
  46.    datos = new LoadVars();
  47.    datos.onLoad = procesar;
  48.    variables.filename = "fis.sco";
  49.    variables.scoresize = 10;
  50.    variables.action = "VIEW";
  51.    variables.viewtype = "FLASH";
  52.    variables.sendAndLoad("http://www.dzarchive.com/iragination/hiscotumay.php",datos,"GET");
  53.    mwait = getTimer() + 40000;
  54.    loaded = false;
  55.    failed = new Sound();
  56.    failed.attachSound("fhitted");
  57.    exito = new Sound();
  58.    exito.attachSound("cheater");
  59. }
  60.